/*
Copyright DAUPHIN Maxime 2005

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
http://www.gnu.org/licenses/gpl.txt
*/
#ifndef __MYWND_H__
#define __MYWND_H__

#include "Win32Lib/Gui.h"
#include "Win32Lib/wnd.h"
#include "Win32Lib/Edit.h"
#include "Win32Lib/Image.h"
#include "Win32Lib/Static.h"
#include "Win32Lib/ClipBoard.h"
#include "Win32Lib/Dc.h"
#include "Item.h"
#include "Hook/Hook.h"


class MyWnd :
	public Gui::Wnd, CallBackHook
{
	Gui::Edit	m_edit;
	Gui::Image	m_img;
	std::vector<Item>	 m_statics;
	Gui::ClipBoard	m_clipBoard;
	

	std::vector<std::string>	m_listStr;
	typedef std::vector<std::string>::iterator itListStr;
	static const unsigned int NB_STATIC = 5;
public:
	MyWnd(void);
	virtual ~MyWnd(void);

	virtual int onCommand(int command);
	virtual int onCreate();
	virtual int onSize(int width, int height);
	virtual int onDrawClipBoard();
	virtual int onDestroy();
	virtual int onHook(LPARAM lParam);
	virtual int onPaint(Gui::Dc *pDc);
	virtual int onMouseMove(Gui::Point point);
	virtual int onLButtonUp(Gui::Point point, WPARAM wParam);

	//Hook
	virtual bool newMsg(LPARAM lParam);
};

#endif //__MYWND_H__
